package com.mg.smarttask.client;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("NoteService")
public interface NoteService extends RemoteService {
	
	@SuppressWarnings("rawtypes")
	List getNotesList(long userId);
	
	boolean createNote(Note note);
	
	boolean editNote(Note note);
	
	void deleteNote(Note note);
		
	public static class Util {
		private static NoteServiceAsync instance;
		public static NoteServiceAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(NoteService.class);
			}
			return instance;
		}
	}
}
